﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CMS.BLL;
using CMS.BLL.Entity;

public partial class Controls_Visa_ctrVisa : System.Web.UI.UserControl
{
    private int nCurrentLang = Support.GetCurrentLanguage();
    private int nDefaultLang = Support.GetDefaultLanguage();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            LoadData();
        }
    }
    private void LoadData()
    {

        int nMsg = ConvertData.ConvertToInt(Request.QueryString["msg"]);
        if (nMsg >0)
            Alert1.ShowMessage(1,MultipleLanguage.ENTRYVISA_SENT[nCurrentLang - 1]);
        try
        {
            lblTitle.Text = MultipleLanguage.VISASERVICE[nCurrentLang - 1];
            StaticPages objGeneral = new StaticPages();
            objGeneral.LoadById(37); 
            StaticPages objFee = new StaticPages();
            objFee.LoadById(38);

            StaticPages objLaos = new StaticPages();
            objLaos.LoadById(49);

            StaticPages objCambodia = new StaticPages();
            objCambodia.LoadById(50);

            switch (nCurrentLang ) 
            {
                case 1:
                    ltrStepToApply.Text = objFee.Data.PageContent1;
                    ltrOverview.Text = objGeneral.Data.PageContent1;
                    ltrLaos.Text = objLaos.Data.PageContent1;
                    ltrCambodia.Text = objCambodia.Data.PageContent1; 
                    break;
                case 2:
                    ltrStepToApply.Text = objFee.Data.PageContent2;
                    ltrOverview.Text = objGeneral.Data.PageContent2;   
                      ltrLaos.Text = objLaos.Data.PageContent2;
                    ltrCambodia.Text = objCambodia.Data.PageContent2; 
                    break;
                case 3:
                    ltrStepToApply.Text = objFee.Data.PageContent3;
                    ltrOverview.Text = objGeneral.Data.PageContent3;  
                      ltrLaos.Text = objLaos.Data.PageContent3;
                    ltrCambodia.Text = objCambodia.Data.PageContent3; 
                    break;
            } 
        }
        catch
        {
            Response.Redirect("Default.aspx");
        }
    }
   
   
}